/**
 * @Author: yush
 * @Date: 2019/11/12
 * @Last Modified by: yush
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

/**
 * 查询规定检查周期信息
 * @param {*} params
 */
export const queryCycleInfo = params => axios.get(`${SERVER.VEHICLE}/vehicleRegularRespect/queryCycleInfo`, { params });

/**
 * 获取检查项目信息
 * @param {*} params
 */
export const queryItemInfo = params => axios.get(`${SERVER.VEHICLE}/vehicleRegularRespect/queryItemInfo`, { params });

/**
 * 根据条件获取检查记录
 * @param {*} params
 */
export const getCheckRecordByCon = params => axios.get(`${SERVER.VEHICLE}/vehicleRegularRespect/getCheckRecordByCon`, { params });

/**
 * 新增检查记录表
 * @param {*} params
 */
export const insCheckRecordsByCycle = params => axios.post(`${SERVER.VEHICLE}/vehicleRegularRespect/insCheckRecordsByCycle`, params);

/**
 * 实际检查记录更新
 * @param {*} params
 */
export const updCheckRecordsByCycle = params => axios.post(`${SERVER.VEHICLE}/vehicleRegularRespect/updCheckRecordsByCycle`, params);

/**
 * 获取已经检测的记录信息
 * @param {*} params
 */
export const qryCheckedRecords = params => axios.post(`${SERVER.VEHICLE}/vehicleRegularRespect/qryCheckedRecords`, params);
